<?php use_helper('Javascript')?>
<div>
  <div class="operation"><?php echo link_to_remote(__('RankUp'),array('url' => '@rank_idea?check=0&id='. (($Idea instanceof sfOutputEscaper)? $Idea->getRawValue()->getId() :$Idea->getId),
                                                                  'update' => 'idea_rank'))?></div>
  <div class="operation"><?php echo link_to_remote(__('RankDown'),array('url' => '@rank_idea?check=1&id='. (($Idea instanceof sfOutputEscaper)? $Idea->getRawValue()->getId() :$Idea->getId),
                                                                    'update' => 'idea_rank'))?></div>
  <div class="operation"><?php echo link_to(__('Follow'), url_for('@fav?id='. (($Idea instanceof sfOutputEscaper)? $Idea->getRawValue()->getId() :$Idea->getId)))?></div>
  <div class="operation"><?php echo link_to_function(__('Comment'),'jQuery("#comments").toggle()')?></div>
</div>
